package org.jimmy.tang.designpattern.creation.factorymethod;

/**
 * @author jimmy
 * 
 */
public class Test {
    /**
     * 
     * @param args
     */
    public static void main(String[] args) {
        IWorkFactory studentWorkFactory = new StudentWorkFactory();
        studentWorkFactory.getWork().doWork();

        IWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }

}
